reconfigured to use postgres