Updated sql to assign returned data to the object directly in the query method. This allows raw mySQL queries to be run directly without any processing.