add db function into test google app engine