refactored system stats service to use only hibernate