Fixed SQL errors, Added del and add to qc