Fixed bug if no objects and SQLite
issue #1193 made data tools save in hdf5 format.