Fixed PDO bugs and indentation

Lines 42-44 are commented out because PHP raises a fatal error; can't debug so reverted to original mysql_query().