Update controller.pp

fixed db update