Add error message to log file on "internal server errors"
Fix type and name of a few columns from the "record_templates" table

The "ttl" column should be nullable; the "content" column should accept larger
strings (just like the "content" column from the matching "records" table). And
the "record_type" column should be named "type" (again, to match the mirrored
column in the "records" table").