Change gitignore.
Simplify dates and improve exception handling.
Add db40 files to gitignore.