first attempt to upsert db