database preparation function stage2 and 3, modifications to avoid multiple queries for climatologies by tile to speed up production
database preparation function stage2 and 3, modifications to avoid multiple queries for climatologies by tile to speed up production