Don't share sqlite connection across threads.

This causes errors with mod_wsgi.