added dbInsertOrUpdate
Fixes to dbInsertOrUpdate, ChartObject uses that to save