fixes issues with blueprint and db
Added logging and package count logs