Updating to use postgres instead of sqlite