populating postgres with python