Update LearnDB.cs code cleanup

Update LearnDB.cs code cleanup