adds library_id to books on startup