Fixed two issues with itsdb.py:
* table rows are now properly being written with newlines
* default values are cast as strings so they can be escaped