added extra.sql for indexing and minor changes in files