Basic repository pattern for metadata