Updated repo to use postgres db