added pre-parse capability using berkleydb