Thanks. Also your analysis may be spot-on. The current applications indeed waits for the database. In general this goes well within 1 sec. But while typing this I just realize that it tends to happen mostly when a number of devices report at the same about time. And the thing is single threaded. So queueing it will be.