Add sync gateway config (with sync function definition)