Added improved logic for FORCED state changes now that Raspberry Pi works reliably
Various fixes in database synchronisation and handling of incoming messages