Bug fixes
Bug fixes

BUG: Sometimes the SQLite database was not correctly closed. I cannot reproduce the bug but this commit should really fix the bug.
BUG: do_import_one() was wrong and could fail importing functions with high 64bit addresses (i.e., importing kernel code).
BUG: The current code (shamelessly ripped from somewhere) that performs topological sorting is recursive and may fail. This is a partial dump until this code is completely re-written.

joxeankoret/diaphora