Refactoring SQL executor

removed redundant parameter