Bugfixes

Fix small but fatal bugs involving parameter passing for task call and dbManager call.