Cooking DBMS Operations using Granular Primitives