adding sensor reading to db