changed export to use type synononym
removed redundant constructor
abstracted away operations on database and modified type sigs from Day to DueDate