use nodeId for _id in db
modifications for sprint2