Refactor SQLite DB access patterns in python code (BUGZ-3893)
- WAL mode is activated (will not work for older systems) to prevent ADB locking from python code
- connection to DB is per-query (more latencies but less locking, especially in non-WAL mode)
- publishing DB accessed via dedicated connection (only write operations in python)
Edited by Maiken