Information displayed in the InfoBox that appears when you click on an entity is populated by the name and description properties of the entity. The name shows up on the box header, and the description can be HTML that shows up as the box content. So you can use the information from the database to set the description property. Here is a quick example:
var viewer = new Cesium.Viewer(‘cesiumContainer’, {timeline : false, animation : false});
var pinBuilder = new Cesium.PinBuilder();
var FNAME= ‘first’;
var LNAME = ‘last’;
viewer.entities.add({
name : ‘Title’,
description: 'First: ’ + FNAME + ’ Last: ’ + LNAME,
position : Cesium.Cartesian3.fromDegrees(-75.170726, 39.9208667),
billboard : {
image : pinBuilder.fromColor(Cesium.Color.ROYALBLUE, 48).toDataURL(),
verticalOrigin : Cesium.VerticalOrigin.BOTTOM
}
});