cursor: unwrap errmsg from failed command execution.
errors: add error 59, for unknown command.
tests: add database test case for failed command.