Allow to enable statistics for bonecp

Enables statistics for bonecp according to the db statisticsEnabled config property, default false.