update user.db functions