db no longer always open
changed row factory to provide named fields