Created makeSQLQuery()