input field changes now sync with database