Further steps on the road towards MySQL queries