Added comments to explain the more complex flows
Fix the path to look for Database specific script