updated DB Entity class