fix db-error-handling in setMaxAllowedPacket()