Temporary fix for SQL counter module

Really need nested expansion of config items to do this properly