Added sql exception code for invalid prepare stmt