use mapdb for storing the ids