Small SQL structure changes.