SQL: move df.to_sql to generic + update with new functionality
Merge pull request #6598 from jorisvandenbossche/sql-to_sql

SQL: move df.to_sql to generic + update with new functionality