fix training load random db