Changed mongoose types to Date for Cow model