Added success field to upload log
Now logging all imports to the database and import runs in a database transaction