mysql code for cs341