More accurate sql timestamp parsing