better error checking on sdk completion database