internal db model