Adding previous query table to content provider