WIP: support multiple wals

seq int64
prevIndex int64