Connect to Database.