Clean up Makefile.
Clean up config pkg.
Improve config pkg coverage.
Core package clean up.
Refactor time to db package.