changes to database tables and adding ability to extract from multiple package types