complete the db model