tests finally passing for doc querying
Reuse code for multiple or single listings
see https://github.com/18F/afsmallbiz/issues/85

All tests pass now for using PostgreSQL.  May need more test coverage
to define everything that should happen in a POST.