[MODIF] Run writing into database via fixed pool of daemon threads.