working with ruby, sinatra, and postgreSQL