connected to the index file in DB