cleanup of mongoose and db dependencies