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)
No this shouldn't be a problem. By default the locking mechanism should take care of any concurrency issues in single statements.