blog main page connected to mongodb