refine/cleanup dbstruct output