build dbobject