Added database clearing via rest API