Fix Sinatra validation errors
Validate queries param between 1 and 500 for Sinatra tests
Separate /db and /queries logic to fix Sinatra validation errors
Merge pull request #746 from bbrowning/sinatra-validation

Fix Sinatra validation errors