Fixes #387 query problem still need to test output errors after db change.