create a training method from database

Create training method from database, done