avoid creating rep set before db is ready