replace pg with mongoose