updates to the date dimension fill script to work with current schema and address PostgreSQL specific issues.