Make queue creation sync again, separate ensureIndexes()