DB connection handling upgraded to support sqlite fip and new frontier caching for payloads + other fixes