updated sql scripts