examples for psycopg PostgreSQL database adapter