make use of ctable prefix in reporting table names
Merge pull request #3171 from dimagi/ctable-prefix

make use of ctable prefix in reporting table names