Update apps/library.php