Complete to insert an object to mongodb and find some objects from mongodb