Added "Create newDatabase" functionality

I did have to edit vault.py to get around a Unicode problem. I hope it doesnt bite us later on.
Also a slight bug fix for a js insert in index.html