"The trick for extracting performance from SQLite is to use a single connection object for all operations, and to serialize transactions using your application's logic rather than depending on the database to do this for you."
It's not the right approach because it's hard to get right, you want to offload that to the DB.