model database for gamification