Using keywords instead of strings as keys and vectors instead of lists
Adding method to set the DB value, using it in testing
Modify average method to better handle empty parameters and use reduce