Add some indexes to the media table and the log.
Merge branch 'stage' of github.com:vanillaforums/Garden into stage