Copy Pasta of scripts from [redacted]. We may need to rework the schema again