Indexing database used on small scale of data