async function loadArr (arr, name) {
  await dbAction(name, 'insert', arr.map(d => {
    const { id, ...rest } = d
    return {
      _id: id,
      ...rest
    }
  })).catch(log.error)
}
upgrade database to v1.3.0
migrate old file based db to nedb