fixed date to db