Took out dialogs for sql errors. Stack trace will be printed to the
console.