fix two bugs when importing a file into a database (null values, quotes)