method sql() moved