Adding function and ability in main server to parse the query into an object. Added code to facilitate getItems action from tools