client logging fixes; basesql .extract can accept debug kwarg now