Corrected put and post methods for Quiz on Sinatra