update database view