Added db disconnection code
fixed "db_config" .. changed to dbConfig