Update DB.php

converts AM/PM to integers properly but the sort button must be clicked twice. first click converts, second sorts.