severely upgraded code to work as intended e.g. synch to remoteDB working well...