Help with functions / PDO statements

@DaveMaxwell
You’ll kill your database server with with dozens of connects made from single PHP script execution.