Fixed wrong Object_Type parameter in KPIAdd(), Fixed for for KPIUpdate(), Fixed requirement of ID parameter in KPIUpdate().
Improver error message.
Fixed SQL statement for KPIUpate().
Added tests for KPIUpdate().