finish database connectivity