Updated db_test. it can now be used as an importer.