Add clear button and guarantee alphabetical sorting of tags

clear button and database poplulation redirect back to the current page.