Added database models for trainify.io refactor.