Add flush database for localstorage