change id assigning method
add resource model save; turn on disabling fks