Implemented statistics database methods
Merge origin/master