Import speed improvements and fix some deprecated import

The import speed is now up to 30 times faster than before, I don't really see the advantage of wrapping it in a withTransaction method.
Also allow empty strings for the text field to allow empty translations.
At the same time I've also fixed some deprecated imports and refactored some parts of the code.