dbconnection open/close fixed