added basic clustering for mysql