Added date difference check that work in MySQL (and probably only there, sigh.)