Assign process status in DB