clean database at each step