gendb: clean ups