Merge pull request #87 from Thoronador/db_api_pdo

Replace old MySQL API calls with PDO_MySQL