Enum and Size refactorings for corrosponding dbtype.