This is a duplicate post. See Is there possibility to have two databases for one bucket in sync gateway?