fix date in db