Switched nonce update SQL query to something more direct for improved performance