updating the Database class to use mysqli instead of mysql