A lightweight wrapper around psycopg2