SQL minor changes.