UPDATE & INSERT works, conditional to be fixed.

Need to get the row count from a SELECT query using PDO.