Exception handle for loading data from db.