Future<void> insertBook(Book book) async { final db = await database; await db.insert( 'books', book.toMap(), conflictAlgorithm: ConflictAlgorithm.replace, ); }