Fixed issues with database loader

* githubarchive.org archives aren't perfect
* Workaround some bugs in parsing