QueryDefinition class created for saving and retrieving of EmsQueries.