Migrating DBStats package

Signed-off-by: Kevin Nguyen <k.nguyen@thecodingmachine.com>