Caterpillar interview question

How you connect db and retrive data from C# scripts