Future<int?> deleteNote(Note note) async { final db = await database; return await db?.delete( 'notes', where: 'id = ?', whereArgs: [note.id], ); }