Some sql injection protection added. Ignore the answerkeyarray comment.