fixed extended class
localized DB config
added migration