Refactor update function in backpacks controller server-side