search_query_insert breaks down when the value of key is 0