initial implementation of poor man's db clustering
merge poorman's clustering branch