Add input builder for data structures of the db-based version.