Editor finished, updates the layout in db