add badge route api
logging db info