Some helper scripts for ejabberd