handled exception at readToDB and readCard