Add preliminary support for SQLite indexes

Change-Id: I66b319802ec6d5a8002b385d70880c6851b582af