Added config class
Added support for Config class in the Database class