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)
I don't think so, I vaugely remember seeing something like this in a SQL server best practices example from Microsoft.