fixed my sql scripts