refactor: extract method
measureSCase() now also save the whole databse in one file (like it used to do).