Metadata database for SGD