Fix incorrect error message in LoadDB and get rid of call to Form()

(cherry picked from commit e5ad2597d36de28549e5dfc28faa2eb06ed22aef)
Fix/Update CAEN 1190 TDC decoder

Based on code by Simona Malace, heavily modified/updated by
Brad Sawatzky.

(cherry picked from commit c248031308dcf16b99583385dc9b9b1f30321cfd)