Plot with sql and some plot arguments