new method "to_sql"