public void convert() throws SQLException{
		//first import tags
		System.out.println("Importing tags from old database");
		ResultSet rs = statement.executeQuery("SELECT * FROM tags");
		while(rs.next()){
			String tag = rs.getString("tag");
			if(!ChocolateKoala.db().getTags().contains(tag)){
				ChocolateKoala.db().storeTag(tag);
			}
		}
		//now images
		System.out.println("Importing images from old database");
		TagSet ckdt = ChocolateKoala.db().getTags();
		rs = statement.executeQuery("SELECT * FROM images");
		while(rs.next()){
			TagSet ts = new TagSet();
			if(rs.getString("tags").contains(":")){
				String[] ls = rs.getString("tags").split(":");
				for(String s: ls){
					if(ckdt.contains(s)){
						ts.store(s);
					}
				}
			}else if(rs.getString("tags").length()>0&&rs.getString("tags").trim()!=""){
				if(ckdt.contains(rs.getString("tags"))){
					ts.store(rs.getString("tags"));
				}
			}
			String hash = rs.getString("hash");
			String path = rs.getString("path");
			StillImageData d = new StillImageData(path, hash, ts, 0, DataType.UNKNOWN);
			ChocolateKoala.db().storeMedia(d);
		}
		System.out.println("You should now use the find missing function");
	}