select_for_update on keyValue to avoid concurrency problems