fix the bug of keep creating new reminder entry in database