Correctly adds Date to database