now app work with remote and local db