Connect to database and store handle as private var