remove unused imports and var
flag for single and multiple db queries to provide the correct response type
Merge pull request #750 from codylerum/undertow_validation

Undertow validation issues and cleanup