added index sql.