create index query added (with tests)