Rewritten detfield and detlog deletion methods

A new "active" column determines whether or not a field or field log is
visible.

To update databases, use this SQL:

ALTER TABLE field_list ADD COLUMN active INTEGER;
ALTER TABLE field_logs ADD COLUMN active INTEGER;
UPDATE field_list SET active = 1;
UPDATE field_logs SET active = 1;