catch can't open database exception