update stack.json before database