fix dump/load bug for more than one table in indexedDB