Assign correct db as "primary"