Registering queue log in database

Does anybody have an answer to this yet, I really need this for integration to call center system (real time queue data in mysql). We are on latest FreePBX with Asterisk 11.2)

Any help would be much appreciated