Move changing database actions into another file