statistics is now supported

In addition, added packages
fixed minor db bugs