Setup StatFactory, enum in Stat

Added stat_factory and changed the db value for category to int not string.
Bug Fixes and Create Single Stat:

-Fixed bugs in backend base traversal
-A statistic is now created and stored whenever a single occurs
-Created a statistic factory for creating statistics
-Two Tests: StatFactory and creating a stat when a single is hit

[#59163634]
Fixed stat_factory test