made changes to makedb.m to remove repetitions and trying to combine all the different Initialization*.m files
correcting perms