Appened updated sql