generic handlers for using mongoose with hapi