Update to use postgres