cleanup action controller
add control button to launch snycing function
adding sync function, fixed bug to avoind ' screwing up sql insert query