add generic function execute sql