hmmm that is a tricky one... probably you will have to pay to abk experts in order to implement it...
anyway... I suppose this could be done somehow through your database. Sorry I cannot help but my database skills are not very good
I will search for it and if I find anything I will msg you