Making mysql work