remove dummy test file part for fakedb
add basedir arg to Indexing
reorganize db init section