add missing backticks

add missing backticks or this will fail on oracle, format SQL to make it more readable