primary database merger thing