Delete database records when logout