Added compiling of dates.
Removed dependency on postgreSQL