Update profile stack in db