fixed psycopg2 issue