Implemented database statistics