Moved query building to providers instead of cover.py

You can delete this line now.