Fixes year and checks if dbm is set before tear down