when graph is move, the position is updated to DB