exit on bad database