added psycopg2, DB boilerplate
imported os
moved import os to top of file