updated scripts for building hybrid indices for typology mysql databse