I am fairly new to Python, at least to these kinds of problems, and have been struggling with this for days!
I have used df.to_sql for quite a bit of time and for a l