Flickr Ticket Server implementation in perl and MySQL