MOD: write 0 to DB if date is nil.