check if the exists before update/insert & tests