refactor: use key_name as key id for UsersDb