storing avatars as binary data in mongodb