Modified sql scripts to use.