make sql statements configurable
issue fixed