Synchronise ranks from an Xenforo forum using a database query