Fix schema creating scripts