Implemented the ChallengeDetail skeleton
Defined triggers in the database for automatic day updates