Future<int?> addNote(Note note) async { final db = await database; return await db?.insert('notes', note.toMap()); }