change arguments of sql query
code review by tfr