RCB survive scare, beat DC by one run