[Azoth CH] Build index on azoth_history (Id, AccountId).
[Azoth CH] Order by Rowid everywhere for consistency.