Add some more indexes to tables to improve db queries
Merge pull request #5814 from owncloud/add-indexes

Add some more indexes to tables to improve db queries