a master/slave setup with separate slave pools, originally forked from schoefmax/multi_db