Changed the data-type of date and year to UNSIGNED SHORT from INT. Adjusted constructors and other functions accordingly