converts mysql database functions into mysqlDatabase class
changes db function calls in project to db class method calls
changes more db function calls to db class method calls