Transition to local db