added database connectivity