Move session initialize to after db update