Updating title of page and clearing out the DB