Added support for openfire with special database