use psycopg2 connection as register_hstore_handler argument