working to make database not abstract and move the query class to be completely dependent on the database class.