Added updated SQL