data model reverse from db