#1311472 Make Mongo connection configurable.
Remove unused reverse lookup tables.