Add abstract class for sql classes to have base limit method