Temp file to execute sql query for admin column