fixed registration to reflect the new db function