inventory using mongo db