Improved SQLite sorting algorithm
Added vacuum to SQLite