switched query to not use parseobject