database save datetime.today fix