Fixed date validation in db_restore. (closes #236)