Made destroy inert if not inserted
Added block transactions
Fixed a couple of bugs in predicate->sql translator