Rewrite dev_mkdb with FTS