fixed initial bugs with creating stored query library