Solved the error when trying to send two (or more) consecutive posts to the database

Now we can send many consecutive traces to the database without having
to wait between them.