fix(logs): update relationship of logs to be database agnostic