Update to use postgres instead of sqlite.