implemented current db schema to domain objects