Modularize args and db

- db now emits a singleton of epochcore
- args now parsed (sync) from index and required accordingly from other
  files