[untested] implementation of Tag Database