change order of instructions, fix issue with mysql (#302)