a little bit of work with sql