debugtoolbar prevents onEndRequest event firing properly and hence block Nii saving settings. So commented it out for now until fixed
Updated NSettings to try to be less mysql dependant. TODO createtable function