amend db function names