Added mongodb and changed notes Api to get notes from database