Using psycopg instead of flask...