Implement DBLock context manager; dblock_file setting
Use DBLock with some operations that should be atomic
Merge pull request #112 from hfaran/hfaran_dbsync

Database access locking for scaling to multiple concurrent instances on a single host