Fix MessageDB DB connection open close pair