common code used by pulldb appengine modules