make sure worker.js will execute SQL sequentially