Move constants to db module.

- fields and max_field_len are now module-level
  constants in db, not class constants in the
  File class.

- Associated facade properties in Cli were removed
  and the various references were changed.