def need_completion_refresh(queries):
tokens = {<EOL>'<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'<EOL>}<EOL>for query in sqlparse.split(queries):<EOL><INDENT>try:<EOL><INDENT>first_token = query.split()[<NUM_LIT:0>]<EOL>if first_token.lower() in tokens:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>except Exception:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>
Determines if the completion needs a refresh by checking if the sql
    statement is an alter, create, drop or change db.