Added functions to database utilites to store and retrieve the type of
units being used