Periods are loaded in LoadPeriodsStep.
This step identifies that no period need to be loaded based on the fact the project under analysis has no row in table PROJECT (and does a SQL request to find out so):
1. this is now a false test since project are provisioned in WS
2. the information that this is a first analysis is available in AnalysisMetadataHolder#isFirstAnalysis
3. the id of the project in DB is required to load periods but it shouldn't be taken from a specific SQL query but rather from the SNAPSHOT retrieved to compute AnalysisMetadataHolder#isFirstAnalysis