Querywriter

Initial prototype for api query..