Finished SQL. query() is now fully functional, as well as profiles for mysql.