Competitive func & age db logic coded