Test MySQL error
Add error catching functions to worker.js