Updated versions of sql scripts