add initial index code
some renames
iinitial db code, not to execution path yet