contest rules from database rather than static