[error handling] Saving SQL text and database path for faster debugging