added client and table level statistics
working in basic mode