Will disconnect the database when ever the configuration has changed
Refactored the logger interface to make it simpler to use