I wanted to know, will I run into any concurrency problem with this?
This is NOT in a transaction. This code is for Sqlite(prototype), but I plan to use it
Sqlite(prototype)
not a problem You will have implicit transaction anyway. So it should not be a problem.
Even if you change TRANSACTION ISOLATION LEVEL, it should work just fine, at least on SQLServer.