support delete, update of managed objects

support update, delete managed objects and see raw sql statement in
debug console.