put bind values in query to to_sql doesn't have $1, $2 etc