Add query parameter to find function
Get query from command line argument