Use caps for SQL keywords

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Fix failing tests

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>