Modified sqlite provider to be able to run in multiple threads