connect sql server, read & query database