updated sql scripts for production