changed dependency to most recent version of mongoose for better support of refs