implemented CRUD and connected to mongodb