Added methods for saving file into temp database table space