Independent from psycopg