Plan/DB: Segmentation fault corrected. Introduced error when changing to switch case in storeInDB.