Refactor database format to have an eternal history (i.e. no password is ever erased from the database)