fixed sql update procedure and exception for missing hipchat token