Minor db handle fix