update datePicker & favorite connected to database