Added Event Count and Database Connection Patch