require sinatra
added JSON functionality
Changed redis to PG