contest rules from database