Ejabberd module for logging chat messages to a MySQL DB