Updated SQL and jQuery to use Date to work out month names etc.