Added a few more functions to the mysql class