Made library.php pull filter options from the DB.