fix to db model