fixed export database to h5