made functionality include PDFs and sqlite database for batch processing