new trainer-api with db-manager+task-manager integration