Example of database connection using wpf