[#5, #2, #4]: Refactored data model, configuration

Refactored data model and configuration modules to use database for all
storage of model information, updated config model to load data from
either a Python module or a YAML file into the DB (to ensure
referrential integrity between data points and the configuration).