Converted the settings to use postgres.