Add indexes for speedingup db queries

I noticed that there were no indexes defined, this should improve the db access a bit