use mongoose instead of mongodb.