update some database added functions to trait functions