implementing mongodb database, updating calls, adding delete functionality