competition types: application: added models, repository; database: some fixes