cleaned up the mysql lib