Fix return code for failed sql execution.
Document new acl "optional" and [success/fail]