public static int random_inserts( CommunityDAO db, int howmany ) throws Exception {
	
		CryptoUtils c = new CryptoUtils();
		List<String> keys = new ArrayList<String>();
		long start = System.currentTimeMillis();
		
		for( int i=0; i<howmany; i++ ) {
			keys.add(Base64.encode(c.getPair().getPublic().getEncoded()).replaceAll("\n",""));
			
			if( (i % 10) == 0 ) {
				System.out.println("key generation: " + i + " / " +howmany);
			}
			
		}
		System.out.println("key generation took: " + (System.currentTimeMillis() - start)/1000);
		
		start = System.currentTimeMillis();
		int registered = 0;
		for( int kItr=0; kItr<keys.size(); kItr++ ) {
			String k = keys.get(kItr);
			String nick = "rand-" + k.hashCode();
			db.registerUser(k, nick, "127.0.0.1", "admin");
			registered++;
			
			if( (kItr % 100) == 0 ) {
				System.out.println("inserts: " + kItr + " / " + keys.size());
			}
		}
		System.out.println("db inserts: " + (System.currentTimeMillis()-start)/1000);
		return registered;
	}