minor updates for db connection open close