Added function/procedure and index creation to createEmptyEdxDbs.sh.