Detect and print incorrect database linking