Do raw SQL for planofo saveing and allow selection by clicking in sorting.

ALso breaks in vertical mode.