Change from SQL to class based stat retrival