implemented saving dates selected by datepicker into db, changed matches table date field from timestamp to date