Fixed a pre 2001 datebug and separated the ingester code from the API logic