Hello, I need a program that could search a database and add up values on that database when typed into a searchbar. For example:

animal / fun / manitenence / "affection return"
dog ...