separated ORM principles from database initialization, cleaner handling, fixed some tables, etc