StatementInvalid takes WrappedDatabaseException's place