Connection and Selection of Database