add query Lib record