PDO Conversion

converted database connection and all queries calls to PDO from mysqli
Merge pull request #1 from favorspin/pdoconvert

PDO Conversion