Metadata database fix