Added database connectivity