in the middle of adding functions and classes for managing stats dbs