added api documentation for db widget