make sql statement lower