Tables to cards [PD-519]

For review, still need to fix tests.
Yea