ENH : Allow to_sql to recognize single sql type #11886
Continued in #13252 

---

This solves #11886 
It checks whether the passed dtype variable is a dictionary.
If not, it creates a new dictionary with keys as the columns of the dataframe.
It then passes this dictionary  to the pandasSQL_builder.
