Add some test for saving to the archive db

by mocking the jdbc/insert!