Miscellaneous fixes to bulk-import script

* Notes are now optional
* Fixed SQL errors
* Transactional per gismu