added db handlers for ranking results