I think it may have been possible to have used just one database. In the config file we list our database and server. By linking instead of localhost we use one specific mysqyl database, say on bg.com, then it could have worked. All the chats would have looked differently, but it might have worked.
I actually had a thought of having different styles at once. Two users seeing different styles. Its the same principle for users to use different sites.