Updated click.rb to use the new stored procedure.