Locking the database now maintains state as an encrypted blob
Create new database function added. Change master password added too, however no interface element exists to handle this.