Database indexes for better performance

The "LastEdited" column is frequently used as a cache key.
Merge commit 'd04cffa25060333ea3d03d76656c7091eac8d613'