changed sql relations for webapp and modbus client