examples how to connect to data bases by languages