function getStats() returned SQL error: Unknown column 'resilience' in 'field list'