Select query to mongodb and created basic list view