define db model