Changed database configuration to use postgresql.