added batch_history and history_requests tables; now inserts a record into batch_history when starting every batch