Correcting mysql commands