[db] adds an Error message if enable_statistics is not set to true