Clean postgres driver variables and add postgres-9.1 support