Fix the exception which occured when I was filling the DB after clearing, add an "are-you-sure" dialog before clearing the DB