Removed obsolete mongoose code