upgraded to python 3 and postgresql