PDO Implemented

Changed from outdated mysql_ commands to PDO