Working on the mysql stuff