Configuration items database functionality added.
Add the config table and the code to fill it.
Clean up unused sources and add the configuration item database code.
Remove unused sources.