modified entities and changed sql scripts.