add login sql to index folder