Fix #318 Add support for importing and exporting CSV with Unicode

CSV import/export functions in database.py now properly handle
unicode rather than blowing up with a stacktrace.

Signed-off-by: Thanh Ha <thanh.ha@alumni.carleton.ca>