Pulled it two years forward and patched to use PDO instead of MySQL