added logging info
made db and config accessable for child classes