Added the mysql stuff for the simulations