do method ready with sql query