Remove all mysql_ functionality and make insertion/updating use PDO instead.