updated sql setup