Issue #3189680 by mondrake, daffie, alexpott: Deprecate the 'throw_exception' option in the Database API (cherry picked from commit 0bff06df)