close = async () => {
    await sync.stop()
    await queue.onIdle()
    await log.close()
    if (access && access.close) {
      await access.close()
    }
    events.emit('close')
  }
Closes the database, stopping sync and closing the oplog.
@memberof module:Databases~Database
@instance
@async