Date implementation in sql

+ change the date in Note class
+ change the error raising mechanism
+ implement date in sql