Add mahsql class

Put in mahsql class def for clustering. Class not complete yet.