ugh finally table and json with PDO