Generic classes for doing operations on MySql