Better error messaging for statement preparation.
Make a function for emitting sqlite errors.