create sql statement function