Why not use the modules already included in scilifelab repo (scilifelab/db/statusdb.py) for managing connections to statusdb?