made the local db restore take user from env, removed unused methods
made the local db restore take user from env, removed unused methods