update view to DB