connecting to db through pdo