Multiple backend support to sync_vms + fix update_templates (OMS-507)