PDO inserts working. I was not using instance of pdo db connection