Monkey patch to_sql with unprepared_statement