update to support psycopg2 2.5, appears to be backwards compat, fixes #7