Only initialize cloudwatch if database settings exists