Initial commit of the modular index_db.sh
Small changes, fixing typos