Fix unordered DB file ruining search