Dividing file io stage from engine stage. Moved database result to structures repository.