implement category instances and make use of DbWriteFragment to write them