Add indexes for speedingup db queries
Merge pull request #313 from owncloud/add-indexes

Add indexes for speedingup db queries