Fixes #329. Support automatic database routing.
Merge pull request #330 from marekmalek/master

Fixes #329. Support automatic database routing.