Market history import bugfixes

* Reduce queue concurrency to 1 to avoid deadlocks

* Parse dates before insertion

* Skip empty rowsets

* Log errors, rather than silently dropping them

* Do not attempt to delete history where none exists yet