cleanup databae factory usage

- remove GetHubDbSettings
- cache dbs so we don't spend so much time recreating them with all the tables
- remove Lazy<> usage