DB connection Count need to post on api_endpoint

Please see Wiki - how to post code on this forum. There's an edit icon below your post so you can fix it.