now use leveldb databases to track processed sources