hooked up mongoose to persist data