Communication between databases in local mobile devices and remote data server