added index to sql file