Adaptations for the improved Anope chanstats db schema