Future<void> transaction(Future<void> Function(Transaction txn) action) async { await _database.transaction((txn) async { await action(txn); }); }