add logging to GetLatestInputVersions db call

[#76644016]

Signed-off-by: Amit Gupta <agupta@pivotallabs.com>