global database added

global database added to ConnectionFactory