adding mongodb database errors