updated sql details