Initialize now inside one transaction, and..

- Added default values
- Fixed a bug whose types were not created
- Wrapped all the creation inside one transaction