initial database connectivity and api method.