do not restrict the toDb method to types of the dao