local and remote db