cog save sensordata to db