database models: merged db table class into db record class