psycopg workaround for Mac users