Added sql scripts and changed mappings