add database pattern: metadata