Performance problems

* Solve performance problems.
* Store original metadata in database when an error is detected.
* Autorefresh ingest list view.