update mysql_wrapper to make sql queries