nsc: deploy code: more aggressive clean-up
nsc: deploy db: fixed return code