integer indices in sql indexing