stats loading fixed for sqlite