Fix broken query expansion in rlm_sqlcounter Fixes #537
Formatting in rlm_sqlcounter