Added ability to mock the db and changed the tests for it. Copy pasted good parts of the import_database script and changed it to allow me to fill the mock over and over again with a small part of the old json objects.