Added a new field for answer.
Fixed an SQL error and did some perltidy.