Add prune task run to main plugin
Fix database-related NPEs
Include default config