Now using berkeley db instead of loading everything into RAM :/