How to use connection class from SQL Database in C