perform a distinct update/insert for mydb purposes.