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