refractoring of the handling of the dbentry

there were too many conversions from string to list.