replace deprecated calls to function() and renamed Amnesia.transaction! to Amnesia.sync_transaction to work around client code compilation errors