Added initial mysql code for serverside