Generating a Report Gets Stuck at Get Main Report Records from Database