Minor sql scripts changes.