Switch to using mongoose instead of mongodb module