Added new queries for saving/deleting lists of entities.