Remove psycopg dependency