Fixed imports, replaced explicit call to dbconnector construstor, instead used profile method.