database design: build thrift interface