[eluser]xwero[/eluser]
I'm not totally sure but the active group is used by the database library to identify the right database when you load the database without arguments. But because you are setting the database objects with the second argument they are both loaded.
I think because you have two active_groups defined the database class shows strange behavior.