Fix to work with API quirks in psycopg2.
version bump to 0.1.1