Implemented DB driver call PrepareString; alarms table converted to new format