edit db and controller 2