made separate clean script for queries from file. eventually should move things there.