Clear database on load and unload of page.