made local/remote db sync work