Added var mongoose dependency