change to LocalDate
Date (Java) was incompatible with date (postgresql) because it expected a timestamp type, not date