need to fix dbconnection open/close issues