Changed db model