Fetching from MongoDB to array