add 4 missing functions.
add the sql statement that generated by the main.groovy