SQL: Adding elsif and raise to list of keywords