add deletion script
reorder arguments
add dependency
alter argu position, handle null rank
move script loading to db initialization
integrate script manager