minor fixes
added func to get training from DB