storage integration

contains changes needed to integrate different storage modules to mb. (eg: cassandra, mysql, H2)

NOTE: merge after the code review is complete.
could these be contants ( Q1 ... Qn)
queries = new String[]{ Q1, .... Qn};
if you think that make more readability. lets do that.