dates are now saved in database