connecting the controller to form , establishing a database connection