More cleanup:
- Fix two slowNightly tests by removing an undefined function call (my
  bad). Move another to the regular suite since it only takes a few
  seconds.
- Make members of the Database class private, addressing a long-standing
  TODO.
- Fix a bug in building secondary indexes with uniquness checks.
- Remove some old storage artifacts for flushing files / committing
  journal on shutdown.