DB and Java File sync with server