Added deleteAll and transaction support