Add building database factory.