implements merlot categories on DB level