Version 0.5

Finally, drop support for old database format in SQLite.
Multiple bug fixes.
Better testing.