Simple Ad server in Ruby (Sinatra, PostgreSQL and Redis)