adding controller, db