Fix db helper
Fixes bug in AM/PM not validating for some environments - locale strings should be trimmed!