Added database saving script. Tidied up registration.
Merge branch 'master' of https://github.com/thomvincent/nexusnotes