res/res_sorcery_astdb: Add a debugging message for when retrieval by ID fails