Finish change to sqlalchemy, psycopg2 is commented out instead of removed in a few places though.