Isolating Config and SQL related operations to individual classes. [WIP]