index creation mechanism added, althoug it doesnt work. Database fetching made faster