fixed bug where whole DB was being resaved every time on page load and all functions,  added player count functionality