moved away from pandas and implemented DB postgrsql using SQLAlchemy. Note password has changed.
the bottom for loop needs to be revised.
change