sql fix and change date edit