Added db stats gathering