Add function to save user query string
add UserQueryLog.cs