Do not call functions from ejabberd_riak directly
Fix the deprecation warning to reflect YAML format