Support implementation of cross trial in core-db