db processing takes data from Pending and move them to Done