Sample Query

Query class with sample query based on input. 'AI_OUT', "USER_IN" etc
can all be changed to match the correct tables when the DB structure is
known.