refactored pending process, added pending_items table as log for changed items