Add indexes to sqlite

Migration `133_folsom.py` do not create indexes for sqlite.
Added missed indexes with tests.

Fixes bug 1191838

Change-Id: I018e29ba46f2017241c13742169896625944194e
Merge "Add indexes to sqlite"
Merge remote-tracking branch 'm_src_repo/citrix-fixes' into build-temp