Check query sanity

    Args:
        query: query string

    Returns:
        None

def check_query(query):
    """ Check query sanity

    Args:
        query: query string

    Returns:
        None
    """
    q = query.lower()
    if "select " not in q:
        raise InvalidQuery("SELECT word not found in the query: {0}".format(query))
    if " from " not in q:
        raise InvalidQuery("FROM word not found in the query: {0}".format(query))