Modifying the executeQuery method to accept the project id as a parameter