libraries query update