finished dbcontroller