Added table and general functions for stats system #21

Open
waifu wants to merge 8 commits from stats_system into dev