Fixing DB class where() and limit() method.