Made database global