The VoiceGuide scripts are "event-driven". Paths in script modules are taken immediately when a certain event occurs.
Is possible to wait in any module to receive signal (statement) from database
Databases engines don't usually issue events, but approach to use here is to have whatever changed the database entry to issue an event to VoiceGuide as well...
If you could describe in more detail what your scenario and requirements are then we could advise further.
our target is to play MoH and wait until any consultant is free.
Have you had a look at the ACD functionality in VoiceGuide? It sounds like the built in VoiceGuide ACD system could be useful here.
Please see: http://www.voiceguide.com/vgAcd.htm