Connect database.