cleaned up some code for the ProjectQuery class.