directive inputChoice and nedb