db model finished