wm: database encrypt: fix reg keys