bugfix when the mask was empty
sqldata refactoring
storing delta_ts in a file