Added PostgreSQL support to configure script.
Refactored PostgreSQL variables.