Configuring PostgreSQL database