trying to set type for secondary database