cleanup in db classes and controllers. also added Controller::forward and controller generator