Add csv importer plugin

Add csv importer test. Refactor database.py to use csv importer plugin.