Create a class (subs) to handle merging of topics (database-side)

Signed-off-by: emanuele <emanuele45@gmail.com>
response_prefix is used with a rather complex call in few places: function

Signed-off-by: emanuele <emanuele45@gmail.com>