datetime DB fix