update query library