todo sync with view, model and db