Create statistics tables

This should fix issue #49