Added first version of a SQL queryCreator, untested code.