Update db methods in  views