Machine Learning Enabled Query Re-Optimization Algorithms For Cloud Database Systems