date of submission is now saved in database