asving users avatars into mongodb database