Added t4 logic to generate lookups

This will reduce the number of calls to the DB since lookups are
generated as enums.
Refactor

Refactored application to use generated lookups instead of hitting the
DB