Adding hive scripts
change calculate success rate function