refactoring DBEnetity