async function fetchInitData (dbName) {
  const res = await find(dbName)
  const order = await getData(`${dbName}:order`)
  if (order && order.length) {
    res.sort((a, b) => {
      const ai = order.findIndex(r => r === a.id)
      const bi = order.findIndex(r => r === b.id)
      return ai - bi
    })
  }
  return JSON.stringify(res)
}
get sorted data from db
@param {string} dbName