Refactored DB from global to singleton
Layout tabs for stats page