simplified notifications with index, updated the settings method, and fixed up template, sql fixes