Fix SQl Failures