SQL/Sinatra assessment