updated mysql to pdo in test case

also set up inc files