Fix userphrase lifttime update
Use -1 as InitHash error code
Refactoring InitHash
Use SQLite3 BEGIN / END transaction