Updated database connection from depricated PHP mysql to PDO