added Plot model method to execute arbitrary query