I understand PatternDB is a syslog-ng pluginand its dynamic library can be found in as libdbparser.so. 

I went through the following tests in 'https://github.com/balabit/syslog-ng/blob/master/modules/dbparser/patterndb.c'

I want to create two independent pattern_db instances having two different ruleset.
My queries:

1) How can I create two independent instances of patternDB having two different ruleset ?

2)How can I get the handle of these two independent PatternDB instances ?

Can someone please help me on this ?

Thanks